<%--
  Created by IntelliJ IDEA.
  User: Sssller
  Date: 2021/1/31
  Time: 21:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>婴儿档案新增</title>
    <link href="${pageContext.request.contextPath}/static/boostrap/css/bootstrap.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/My97DatePicker/skin/default/datepicker.css" rel="stylesheet">


    <style>
        #editForm  label{
            width: 62px;
            text-align: justify;
            text-align-last: justify;
        }

        #editForm .birthWeek{
            width: 120px;
        }

        #editForm .birthDay{
            width: 80px;
        }

        #editForm .form-control{
            height: 34px;
        }
    </style>
</head>
<body>

<div class="container">

    <!-- 导航-->
    <ol class="breadcrumb">
        <li class="active">当前功能:出生信息登记</li>
    </ol>


    <form id="editForm" class="form-inline" method="post" action="${pageContext.request.contextPath}/hr/newbaby/addnewbabydangan">

        <div class="row">
            <div class="col-md-4">
                <div class="form-group">
                    <label>出生证号:</label>
                    <input type="text" class="form-control" id="birthNum" name="birthNum" >
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>姓   名:</label>
                    <input type="text" class="form-control" id="babyName" name="babyName" >
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>性   别:</label>
                    <select name="babySex" id="babySex" class="form-control">
                        <option value="0">男</option>
                        <option value="1">女</option>
                        <option value="2">不详</option>
                    </select>
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>住 院 号:</label>
                    <input type="text" class="form-control" id="admissionId" name="admissionId" >
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>住院日期:</label>
                    <input type="text" class="form-control Wdate" id="admissionDate" name="admissionDate" onClick="WdatePicker()">
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>出院日期:</label>
                    <input type="text" class="form-control Wdate" id="dischargeDate" name="dischargeDate"  onClick="WdatePicker()">
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>出生日期:</label>
                    <input type="text" class="form-control Wdate" id="birthDate" name="birthDate" onClick="WdatePicker()" >
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>出生时间:</label>
                    <input type="text" class="form-control Wdate" id="birthTime" name="birthTime" onclick="WdatePicker({dateFmt:'HH:mm'})" >
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>出生孕周:</label>
                    <input type="text" class="form-control birthWeek" id="birthWeek" name="birthWeek" >周
                    <input type="text" class="form-control birthDay" id="birthDay" name="birthDay" >天
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>分娩地点:</label>
                    <select name="deliveryAddress" id="deliveryAddress" class="form-control">
                        <option value="0">家中</option>
                        <option value="1">医院</option>
                        <option value="2">其他</option>
                    </select>
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>接生医院:</label>
                    <select name="deliveryHospital" id="deliveryHospital" class="form-control">
                        <c:forEach items="${hospitalList}" var="p">
                            <option value="${p.id}">${p.name}</option>
                        </c:forEach>
                    </select>
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>接 生 员:</label>
                    <select name="midwifeId" id="midwifeId" class="form-control">

                    </select>
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>胎 数:</label>
                    <select name="babyNum" id="babyNum" class="form-control">
                        <option value="1">单胎</option>
                        <option value="2">双胎</option>
                        <option value="3">多胎</option>
                    </select>
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>胎次:</label>
                    <input type="text" class="form-control" id="deliveryNum" name="deliveryNum" >
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>出生体重:</label>
                    <input type="text" class="form-control" id="birthWeight" name="birthWeight" > KG
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label>出生身长:</label>
                    <input type="text" class="form-control" id="birthLength" name="birthLength" > cm
                </div>
            </div>

        </div>

        <div class="row">
            <div class="col-md-12 text-center">
                <input class="btn btn-primary" type="submit" value="保存">
                <a href="${pageContext.request.contextPath}/show" class="btn btn-primary">返回</a>
            </div>
        </div>


    </form>


</div>
</body>

<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="${pageContext.request.contextPath}/static/js/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件 -->
<script src="${pageContext.request.contextPath}/static/boostrap/js/bootstrap.js"></script>

<script src="${pageContext.request.contextPath}/static/My97DatePicker/WdatePicker.js"></script>

<script src="${pageContext.request.contextPath}/static/js/babyInsert.js"> </script>

</html>
